package com.gzhryc.net_marketing.cloud.business.dao.enums;

public class PayGoodsOrderEnum {

	public enum BusinessType {

		DirectPay(1, "直接购买"), TeamPay(2, "组团购买");

		private Integer index;
		private String note;

		BusinessType(Integer index, String note) {
			this.index = index;
			this.note = note;
		}

		public Integer index() {
			return index;
		}

		public String note() {
			return note;
		}

		public Integer getIndex() {
			return index;
		}

		public String getNote() {
			return note;
		}

		public static String note(Integer index) {
			BusinessType[] temp = BusinessType.values();
			for (int i = 0; i < temp.length; i++) {
				BusinessType item = temp[i];
				if (item.index.equals(index)) {
					return item.note;
				}
			}
			return null;
		}
	}
}
